﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using nERP.Model.Bas;
using nERP.Model;

namespace nERP.ViewModel.Bas.GoodsVMs
{
    public partial class GoodsBatchVM : BaseBatchVM<Goods, Goods_BatchEdit>
    {
        public GoodsBatchVM()
        {
            ListVM = new GoodsListVM();
            LinkedVM = new Goods_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class Goods_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._Goods._GoodsName")]
        public string GoodsName { get; set; }
        [Display(Name = "_Model._Goods._GoodsSpec")]
        public string GoodsSpec { get; set; }
        [Display(Name = "_Model._Goods._GoodsType")]
        public string GoodsTypeId { get; set; }
        [Display(Name = "_Model._Goods._GoodsUnit")]
        public string GoodsUnitId { get; set; }
        [Display(Name = "_Model._Goods._RestockingPrice")]
        public decimal? RestockingPrice { get; set; }
        [Display(Name = "_Model._Goods._RetailPrice")]
        public decimal? RetailPrice { get; set; }
        [Display(Name = "_Model._Goods._WholesalePrice")]
        public decimal? WholesalePrice { get; set; }
        [Display(Name = "_Model._Goods._SafetyStock")]
        public decimal? SafetyStock { get; set; }
        [Display(Name = "_Model._Goods._Remark")]
        public string Remark { get; set; }
        [Display(Name = "_Model._Goods._Stock")]
        public decimal? Stock { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}